package demoworld.business.impl;

import demoworld.business.CommonBiz;
import demoworld.business.interfaces.IBookBiz;
import demoworld.business.services.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xxx.entities.result.BookResult;

/**
 * Created by francislee on 19/07/2017.
 */
@Service
public class BookBiz extends CommonBiz implements IBookBiz {
    @Autowired
    private BookService bookService;

    @Override
    public BookResult getBookByBookId(long bookId){
        BookResult tmpResul=new BookResult();
        if(bookId<=0){
            return tmpResul;
        }
        tmpResul.setBookId(bookId);
        tmpResul.setBookName(null);
        //tmpResul.setBookName(bookService.getBookNameByBookId(bookId));
        return tmpResul;
    }
}
